/**
 * @author Lenovo
 *
 */
public class DulNode {
    // 数据域
    private Object data;

    // 后向指针
    private DulNode next;

    // 前向指针
    private DulNode prior;

    // 构造函数
    public DulNode(Object data) {
        this(data,null,null);
    }

    public DulNode(Object data,DulNode next,DulNode prior) {
        this.data = data;
        this.next = next;
        this.prior = prior;
    }

    // 成员方法
    public Object getData() {
        return this.data;
    }

    public DulNode getNext() {
        return this.next;
    }

    public DulNode getPrior() {
        return this.prior;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setNext(DulNode next) {
        this.next = next;
    }

    public void setPrior(DulNode prior) {
        this.prior = prior;
    }
}

